import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const Article = () => import('components/ArticleList.vue');
const AddPerson = () => import('components/AddPerson')

const routes = [
    {
        path:'/',
        redirect:'/article'
    },
    {
        path:'/article',
        component:Article
    },
    {
        path:'/addPerson',
        component:AddPerson
    }
]

const router = new VueRouter({

    routes,
    mode:'history'
});

export default router;